#!/usr/bin/python
# -*- coding: utf-8 -*-


cache_servers = (
    '10.103.13.21:11211', '10.103.13.22:11211',
)

mysql_config = {
    'host': 'localhost',
    'user': 'root',
    'passwd': 'root',
    'db': 'stat',
    'use_unicode': True,
    'charset': 'utf8'
}

mongodb_config = {
    'host': '10.103.13.42',
    'port': 27017,
}

device_type = {
    '0':'Unkown',
    '1':'Phone',
    '2':'Pad',
    '3':'TV',
    '4':'PC'
}

# 缓存超时时间, 单位秒
cache_expire_S = 60
cache_expire_M = 60 * 10
cache_expire_L = 60 * 60
cache_expire_XL = 60 * 60 * 12
cache_expire_MAX = 0 # 30 days



